# _*_ coding: utf-8 _*_
from PyQt5 import QtWidgets

class CustomProgress(QtWidgets.QProgressBar):
    '''进度条'''
    def __init__(self, parent=None):
        super(CustomProgress, self).__init__(parent)
        self.initProgress()


    def setMaxStep(self, max_: int) -> None:
        '''设置最大步骤'''
        self.setRange(0, max_)


    def initProgress(self) -> None:
        '''初始化进度条'''
        self.setValue(0)
        self.setGeometry(10, 70, 380, 30)
        self.setTextVisible(False)